package con.shopping.manger;

import con.shopping.entity.ActiveTime;
import con.shopping.entity.Coupon;
import con.shopping.entity.Discount;

import java.util.Date;

/**
 * @author ：河神
 * @date ：Created in 2022/2/14 8:41 下午
 */
public class ActiveManger {

    public Coupon getCoupon(){
        ActiveTime activeTime = new ActiveTime(new Date(),new Date());
        Coupon coupon = new Coupon(activeTime,1000,20);
        return coupon;
    }

    public Discount getDiscount(){
        ActiveTime activeTime = new ActiveTime(new Date(),new Date());
        Discount discount = new Discount(activeTime,100);
        return discount;
    }

}
